class Itrone < ActiveRecord::Migration
  def self.up
    create_table :ads, :primary_key => :ad_id do |t|
      t.integer :ad_id
      t.string :title,         :limit   => 50
      t.text :description
      t.integer :user_id
      t.integer :gallery_id
      t.datetime :starttime
    end
  end

  def self.down
    drop_table :ads
  end
end
